import { Controller, Get } from '@nestjs/common';
import { Taskervice } from '../services/task.service';
import { Task } from '../entity/task.entity';

@Controller('api')
export class TaskController {
  constructor(private readonly Taskervice: Taskervice) {}

  @Get('test')
  getHello(): Promise<Task[]> {
    return this.Taskervice.findAll(1);
  }
}
